package tester;

/**
 * Wrapper class used to store data about object clones.
 * @author Weston Jossey
 * @since Jan 12, 2008
 *
 * @param <T> Type of object to clone
 */
public class Clone<T> {
	private final T cloneRef;
	private final T oldRef;
	
	public Clone(T cloneRef, T oldRef){
		this.cloneRef = cloneRef;
		this.oldRef = oldRef;
	}
	
	/**
	 * Get the reference to the clone.
	 * @return clone reference
	 */
	public T getClone(){
		return cloneRef;
	}
	
	/**
	 * Get the reference to the original object
	 * @return original reference
	 */
	public T getOriginal(){
		return oldRef;
	}
	
}
